﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bzure.Common.Exceptions;

namespace Bzure.Security.Permissions.CAS
{
    [Serializable]
    public class BzurePermissionException : BzureException
    {
        private PermissionExceptionType _permissionError;
        public PermissionExceptionType PermissionError
        {
            get { return _permissionError; }
        }
        public IDroit Droit
        {
            get;
            private set;
        }
        public BzurePermissionException(string msg, PermissionExceptionType error, IDroit droit) :
            base(msg)
        {
            this.Droit = droit;
            _permissionError = error;
        }
    }
}
